import json
import os


class OperationJson:
    @staticmethod
    def operation_json(path):
        # 读取文件
        with open(path, mode='r', encoding='utf-8') as f:
            json_data = json.load(f)
        return json_data


if __name__ == '__main__':
    path = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), 'data/login.json')
    print(OperationJson.operation_json(path))
